package com.game.system.domain.game;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.annotation.Excel;
import com.game.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 卡密对象 code_key
 *
 * @author Mr.Liu
 * @date 2025-03-18
 */
@TableName(resultMap = "com.game.system.mapper.CodeKeyMapper.CodeKeyResult")
public class CodeKey extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 卡密id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 卡密密钥
     */
    @Excel(name = "卡密密钥")
    private String key;

    /**
     * 卡密类型
     */
    @Excel(name = "卡密类型")
    private String type;

    /**
     * 状态()
     */
    @Excel(name = "状态()")
    private String status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("key", getKey())
                .append("type", getType())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
